package com.fansl.allround.upms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fansl.allround.upms.api.entity.SysRole;

import java.util.List;

/**
 * @author fansl
 * @Description: Mapper 接口
 * @date 2019/7/12 19:21
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {
    /**
     * 通过用户ID，查询角色信息
     *
     * @param userId
     * @return
     */
    List<SysRole> listRolesByUserId(Integer userId);
}
